<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>报表曲线图</title>
    <script src="/jQuery/jquery-1.11.2.js"></script>
    <script src="../jQuery/echarts.js"></script>
    <script src="/code/highcharts.js"></script>
<!--
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
-->
    <!--<script src="http://code.highcharts.com/highcharts.js"></script>-->
    <link rel="stylesheet" type="text/css" href="/css/font.css">
</head>
<body>
<div id="container" style="width: 950px; height: 800px; margin: 0 auto"></div>
<script language="JavaScript">
    var dt=new Date(new Date().getTime()-365*24*60*60*1000);
    var ss=dt.getFullYear()+"-"+(dt.getMonth()+1)+"-"+dt.getDate();

    $.getJSON('/WorthStatisticsController/zxt/'+ss, function (data) {

            var title = {
                text: '单位净值折现图'
            };
            var subtitle = {
                text: 'Source: runoob.com'
            };
            var xAxis = {
                categories: data.sj
            };
            var yAxis = {
                title: {
                    text: ''
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            };

            var tooltip = {
                valueSuffix: '元'
            }

            var legend = {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
            };

            var series = data.sjs;

            var json = {};

            json.title = title;
            json.subtitle = subtitle;
            json.xAxis = xAxis;
            json.yAxis = yAxis;
            json.tooltip = tooltip;
            json.legend = legend;
            json.series = series;
        //Highcharts.stockChart('container',json);
       $('#container').highcharts(json);

    });

</script>
</body>
</html>